// amis上的配置
export const loginPageConfig = {
  type: "page",
  title: "",
  body: [
    {
      type: "flex",
      className: "p-1",
      items: [
        {
          type: "container",
          body: [
            {
              type: "form",
              title: "在线学习系统",
              body: [
                {
                  type: "select",
                  label: "身份",
                  name: "type",
                  id: "u:f594e403f64b",
                  multiple: false,
                  options: [
                    {
                      label: "学生",
                      value: "student",
                    },
                    {
                      label: "教师",
                      value: "teacher",
                    },
                    {
                      label: "管理员",
                      value: "admin",
                    },
                  ],
                  value: "student",
                  selectFirst: true,
                },
                {
                  label: "账户",
                  type: "input-text",
                  name: "account",
                  id: "u:76064481d18c",
                  clearable: true,
                },
                {
                  type: "input-password",
                  label: "密码",
                  name: "password",
                  id: "u:e4407f176545",
                  showCounter: false,
                  validations: {},
                  validationErrors: {},
                  clearable: true,
                },
              ],
              api: {
                url: "http://localhost:3000/login",
                method: "post",
                messages: {
                  fetchFailed: "登录失败",
                  saveSuccess: "登录成功",
                  saveFailed: "登录失败",
                  fetchSuccess: "登录成功",
                },
                requestAdaptor: "",
                adaptor: "",
                dataType: "json",
              },
              id: "u:b90db8284798",
              submitText: "登录",
              messages: {
                fetchFailed: "登录失败",
                saveSuccess: "登录成功",
                saveFailed: "登录失败",
                fetchSuccess: "登录成功",
              },
            },
          ],
          size: "xs",
          style: {
            position: "static",
            display: "flex",
            flex: "0 0 150px",
            flexBasis: "300px",
            overflowX: "auto",
            overflowY: "auto",
            "flex-direction": "column",
          },
          wrapperBody: false,
          isFixedHeight: false,
          isFixedWidth: false,
          id: "u:1e485f386279",
        },
      ],
      style: {
        position: "relative",
        inset: "auto",
        flexWrap: "nowrap",
        alignItems: "center",
        overflowX: "auto",
        margin: "0",
        height: "100vh",
        overflowY: "auto",
        flex: "0 0 150px",
        flexBasis: "100vw",
      },
      id: "u:790fa1430dfc",
      isFixedHeight: true,
      isFixedWidth: false,
    },
  ],
  id: "u:63d40e31d1c7",
  asideResizor: false,
  pullRefresh: {
    disabled: true,
  },
  regions: ["body"],
  toolbar: [
    {
      type: "flex",
      className: "p-1",
      items: [
        {
          type: "container",
          body: [],
          size: "xs",
          style: {
            position: "static",
            display: "block",
            flex: "1 1 auto",
            flexGrow: 1,
            flexBasis: "auto",
          },
          wrapperBody: false,
          isFixedHeight: false,
          isFixedWidth: false,
          id: "u:10102a7be433",
        },
        {
          type: "container",
          body: [],
          size: "xs",
          style: {
            position: "static",
            display: "block",
            flex: "1 1 auto",
            flexGrow: 1,
            flexBasis: "auto",
          },
          wrapperBody: false,
          isFixedHeight: false,
          isFixedWidth: false,
          id: "u:b89b5b55b328",
        },
        {
          type: "container",
          body: [],
          size: "xs",
          style: {
            position: "static",
            display: "block",
            flex: "1 1 auto",
            flexGrow: 1,
            flexBasis: "auto",
          },
          wrapperBody: false,
          isFixedHeight: false,
          isFixedWidth: false,
          id: "u:1e485f386279",
        },
      ],
      style: {
        position: "relative",
      },
      id: "u:cda505abc85d",
    },
    {
      type: "flex",
      className: "p-1",
      items: [
        {
          type: "container",
          body: [],
          size: "xs",
          style: {
            position: "static",
            display: "block",
            flex: "1 1 auto",
            flexGrow: 1,
            flexBasis: "auto",
          },
          wrapperBody: false,
          isFixedHeight: false,
          isFixedWidth: false,
          id: "u:10102a7be433",
        },
        {
          type: "container",
          body: [],
          size: "xs",
          style: {
            position: "static",
            display: "block",
            flex: "1 1 auto",
            flexGrow: 1,
            flexBasis: "auto",
          },
          wrapperBody: false,
          isFixedHeight: false,
          isFixedWidth: false,
          id: "u:b89b5b55b328",
        },
        {
          type: "container",
          body: [],
          size: "xs",
          style: {
            position: "static",
            display: "block",
            flex: "1 1 auto",
            flexGrow: 1,
            flexBasis: "auto",
          },
          wrapperBody: false,
          isFixedHeight: false,
          isFixedWidth: false,
          id: "u:1e485f386279",
        },
      ],
      style: {
        position: "relative",
      },
      id: "u:c07ec705081e",
    },
  ],
  style: {
    display: "flex",
    "justify-content": "center",
    "align-content": "center",
    width: "100%",
    height: "100%",
  },
};
